package com.zhou.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;
import java.util.Map;

@Controller
@RequestMapping("/")
public class IndexController {

    @RequestMapping("/index")
    public String index(Map<String, Object> model){
        model.put("time", new Date());
        model.put("message", "hello world!!!");
        return "index";
    }

}
